MPExit

Allows a task to terminate itself

void MPExit (OSStatus status);
status
An application-defined value of type OSStatus that indicates termination status. This value is sent to the termination message queue in place of the task's result code.
DISCUSSION
When called from within a preemptive task, the task terminates, and the value indicated by the parameter status is sent to the termination message queue you specified in MPCreateTask . Note that you cannot call MPExit from outside a preemptive task.

VERSION NOTES
Introduced with Multiprocessing Services 1.0.


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)